<%@page import="com.liferay.portal.kernel.language.LanguageUtil"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="doan.quanlycanbo.portlet.model.donvi" %>
<%@page import="doan.quanlycanbo.portlet.service.donviLocalServiceUtil" %>
<%@ include file="/init.jsp" %>

<%
	ResultRow row = (ResultRow) request.getAttribute( WebKeys.SEARCH_CONTAINER_RESULT_ROW);
	donvi dv  = (donvi) row.getObject();
	long groupId = themeDisplay.getScopeGroupId();
	String name = donvi.class.getName();
	String primKey = String.valueOf(dv.getPrimaryKey());
	
// 	String depId = org.getExpandoBridge().getAttribute("idDonvi").toString();
%>

<liferay-ui:icon-menu message='<%=LanguageUtil.get(pageContext, "managecontacts.agency.view-actions","Tac vu") %>'>

<%-- 	<c:if test='<%= PortletPermissionUtil.contains(permissionChecker, portletDisplay.getId(), ActionKeys.UPDATE) %>'> --%>
<%-- <c:if test='<%= depId.equals("0") || com.liferay.portal.kernel.util.Validator.isNull(depId) %>'> --%>
<%-- 	<portlet:renderURL windowState="normal" var="addDepURL"> --%>
<%-- 		<portlet:param name="orgId" value="<%= primKey %>"/> --%>
<%-- 		<portlet:param name="jspPage" value="/html/manage_employee/department/add_department.jsp"></portlet:param> --%>
<%-- 	</portlet:renderURL> --%>
<%--     <liferay-ui:icon image="add" message='<%=LanguageUtil.get(pageContext, "managecontacts.agency.view-actions.edit","Add Department") %>' url="<%= addDepURL.toString() %>" /> --%>
<%-- </c:if>     --%>
<%--   </c:if> --%>

<%-- <c:if test='<%= !com.liferay.portal.kernel.util.Validator.equals(depId, "0") %>'> --%>
    <portlet:renderURL windowState="normal" var="editDepURL">
		<portlet:param name="depId" value="<%= primKey %>"/>
		<portlet:param name="jspPage" value="/html/manage_employee/department/edit_department.jsp"></portlet:param>
	</portlet:renderURL>

    <liferay-ui:icon image="edit" message='<%=LanguageUtil.get(pageContext, "managecontacts.agency.view-actions.edit","Sua") %>' url="<%= editDepURL.toString() %>" />
    
    <portlet:actionURL name="deleteDepartment" var="deleteDepURL">
      <portlet:param name="depId" value="<%= primKey %>" />
    </portlet:actionURL>

    <liferay-ui:icon image="delete" message='<%=LanguageUtil.get(pageContext, "managecontacts.agency.view-actions.delete","Xoa") %>'  url="<%= deleteDepURL.toString() %>" />
<%-- </c:if> --%>
</liferay-ui:icon-menu>




